QT       += core gui opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

win32 {
    LIBS += -LC:/Qt/6.6.3/msvc2019_64/lib/ -lQt6OpenGLd
    LIBS += -LC:/Qt/6.6.3/msvc2019_64/lib/ -lQt6OpenGLWidgetsd
    LIBS += -lopengl32 -lglu32
}

android {
    LIBS += -LC:/Qt/6.6.3/android_arm64_v8a/lib/ -lQt6OpenGL_arm64-v8a
    LIBS += -LC:/Qt/6.6.3/android_arm64_v8a/lib/ -lQt6OpenGLWidgets_arm64-v8a
}

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ModelFormation.cpp \
    STLModelAttributesCalculator.cpp \
    STLModelMeshesConvertor.cpp \
    STLModelSlicesProducer.cpp \
    STLReader.cpp \
    SliceContoursExtractor.cpp \
    ViewCamera.cpp \
    contourmainwindow.cpp \
    main.cpp \
    slicemainwindow.cpp \
    slicingsettingsdialog.cpp \
    stlcontourwidget.cpp \
    stlmainwindow.cpp \
    stlmodelwidget.cpp \
    stlslicewidget.cpp

HEADERS += \
    ISTLModelMeshesConvertor.h \
    ModelFormation.h \
    STLModelAttributesCalculator.h \
    STLModelMeshesConvertor.h \
    STLModelSlicesProducer.h \
    STLReader.h \
    SliceContoursExtractor.h \
    ViewCamera.h \
    contourmainwindow.h \
    slicemainwindow.h \
    slicingsettingsdialog.h \
    stlcontourwidget.h \
    stlmainwindow.h \
    stlmodelwidget.h \
    stlslicewidget.h

FORMS += \
    contourmainwindow.ui \
    slicemainwindow.ui \
    slicingsettingsdialog.ui \
    stlmainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    shaders.qrc \
    stl_models.qrc
